package com.mt.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @author Wang
 * @Description 评论点赞实体
 * @date 2020/12/3-14:32
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mt_comment_like")
@ApiModel(value = "评论点赞VO", description = "")
public class CommentLike {
    @ApiModelProperty(value = "自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String userId;
    private Integer commentId;
    //0/1 --> like/unlike
    private Integer likeStatus;

    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    public CommentLike(String userId, Integer commentId, Integer likeStatus) {
        this.userId = userId;
        this.commentId = commentId;
        this.likeStatus = likeStatus;
    }
}
